contractCodePay = ({
	getConstractDetailById : function (){
		$.ajax({
			type: "POST",
			dataType: "json",
			url: "../zukeContract/getConstractDetailById.do?rnd="+ Math.random(),
			data: {
				"contractId": contractId,
			},
			success: function(data){
				if(data.success){
					$("#price").text("￥" + (parseInt(data.contractDetail.rental_price)+parseInt(data.contractDetail.total_cash)));
				}
			},
			error: function(e) {
				$$.toast("请求出错");
			}
		});
	},
	updateStatus : function (){
		$.ajax({
			type: "POST",
			dataType: "json",
			url: "../zukeContract/updatePayStatus.do?rnd="+ Math.random(),
			data: {
				"contractId": contractId,
				"payStatus" :"1"
			},
			success: function(data){
				if(data.success){
					 $$.alert("提交成功，管理员会尽快处理您的订单", function () {
						 window.location.href="../jsp/home.html";
				        });
				}
			},
			error: function(e) {
				$$.toast("请求出错");
			}
		});
	}
})